import { createApp } from 'vue';
import App from './App.vue';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
// 新增：导入路由实例
import router from './router'; // 假设路由配置文件在 src/router/index.js

const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(ElementPlus);
// 新增：安装路由（关键步骤）
app.use(router);
app.mount('#app');